package com.example.springboothikaricp.provider;


import com.example.springboothikaricp.utils.DbUtil;
import com.hjkj.webservice.server.service.ConnectionProvider;
import com.hjkj.webservice.server.transaction.ConnectionContextHolder;


import java.sql.Connection;
import java.sql.SQLException;

/**
*  @author lujunyi
*/
public class DefaultConnectionProvider implements ConnectionProvider {
	@Override
	public Connection supply() throws SQLException {
		// 设置到ContextHolder
		return DbUtil.getConnection();
	}

}
